package com.angel.provider.sys.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.angel.core.base.BaseProviderImpl;
import com.angel.dao.health.SysLogMapper;
import com.angel.health.SysLogWithBLOBs;
import com.angel.provider.sys.SysManagerLogProvider;

/**
 * 高亚林
 * 2016年9月22日下午8:40:18
 */

@Service
public class SysManagerLogProviderImpl extends BaseProviderImpl<SysLogWithBLOBs> implements SysManagerLogProvider {

	@Autowired
	private SysLogMapper mapper;
	
	//保存
	public void save(SysLogWithBLOBs log) {
		mapper.insert(log);
	}

	//批量删除
	/*public int delete(String ids) {
		try {
			String[] idarr = ids.split("&");
			for (String id : idarr) {
				SysLogWithBLOBs log = new SysLogWithBLOBs();
				log.setId(Integer.parseInt(id));
				log.setDelFlag("0");
				mapper.updateByPrimaryKeySelective(log);
			}
		} catch (NumberFormatException e) {
			e.printStackTrace();
			return 0;
		}
		return 1;
	}*/

	//删除单个
	/*public int deleteById(SysLogWithBLOBs log) {
		log.setDelFlag("0");
		return mapper.updateByPrimaryKeySelective(log);
	}*/

}
